<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.faq.manage_faq}</h3>
        <ul class="tab1">
            <li><a href="__URL__/faqList"><span>{$Think.lang.faq.all_faq}</span></a></li>
            <li class="current"><empty name="rs"><a href="__URL__/addFaq"><span>{$Think.lang.faq.add_faq}</span></a><else/><a href="__URL__/editFaq/faq_id/{$rs.faq_id}"><span>{$Think.lang.faq.edit_faq}</span></a></empty></li>
        </ul>
    </div>
    <p class="tips">{$Think.lang.faq.faq_tips}</p>

    <form name="cpform" method="post" action="__ACTION__">
    <input type="hidden" name="op" value="save" />
    <input type="hidden" name="faq_id" value="{$rs.faq_id}" />
    <table class="tb tb2">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.faq.faq_identifier}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="identifier" type="text" class="txt" value="{$rs.identifier}" /></td>
            <td class="vtop tips2">{$Think.lang.faq.faq_identifier_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.faq.faq_title}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="title" type="text" class="txt" value="{$rs.title|htmlspecialchars}" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.faq.faq_content}:</td></tr>
        <tr>
            <td class="vtop" colspan="2"><html:markitup mode="bbcode" id="content" name="content" content="{$rs.content}" /></td>
        </tr>
        <tr class="nobg"><td colspan="15"><div class="fixsel"><input class="btn" type="submit" value="Submit" /></div></td></tr>
    </table>
    </form>
</div>

<script type="text/javascript">
$(function(){

});
</script>

<include file="Public:footer" />